package com.feihong.txgw.inter.contract.order;

import com.feihong.txgw.json.user.ProductOrderDetailEntity;
import com.feihong.txgw.ui.mvp.model.IBaseModel;
import com.feihong.txgw.ui.mvp.precenter.AbBasePrecenter;
import com.feihong.txgw.ui.mvp.view.IBaseActivity;

import java.util.List;

import io.reactivex.Observable;

/**
 * @Author wangziheng
 * @ProjectName txgw_app
 * @ClassName TernminalOrderDetailContract
 * @package com.feihong.txgw.inter.contract.order
 * @data 2018/5/7 13:14
 * @Describe
 * @Change
 */
public interface TernminalOrderDetailContract {

    interface ITerminalOrderDetailMainView extends IBaseActivity{
        void loadOrderDetailResult(List<ProductOrderDetailEntity> orderInfo);
    }

    interface ITerminalOrderDetailMainModel extends IBaseModel{
        Observable getOrderDetail(String tableID,String orderID);
    }

    abstract class AbTerminalOrderDetailMainPrecenter extends AbBasePrecenter<ITerminalOrderDetailMainModel,ITerminalOrderDetailMainView>{

        public abstract void loadOrderDetail(String tableID,String orderID);
    }
}
